{% extends "base.html" %}
<!DOCTYPE html>
<html lang="en">

        {% block head %}
            {% block title %}
                <title>用户中心</title>
            {% endblock %}
            {{ super()}}
        {% endblock %}

        <body>
        {% block body %}
        {% for message in get_flashed_messages() %}
            <strong>{{ message }}</strong>
        {% endfor %}
            <div class="wrapper">
            {% block header %}
                {{ super() }}
            {% endblock %}

                <main id="main-content">
                <div class="main-section">
                    <div class="page-section">
                        <div class="profile-pages">
                            <div class="container">
                                <div class="row">
                                    <div class="section-fullwidth col-lg-12">
                                        <div class="cs-content-holder">
                                            <div class="row" >
                                                <div class="cause-holder" style="width: 100%">
                                                    <div class="col-lg-12">
                                                        <div class="cs-auther">
                                                            <figure>
                                                                <a href="#"><img alt="#" src="../../static/assets/images/user-image.png"></a>
                                                            </figure>
                                                            <div class="text">
                                                                <h3>
                                                                    {{ user_name }}
                                                                </h3><span>人人为我，我为人人</span>
                                                            </div>
                                                        </div>
                                                        <div class="right-sec">
                                                            <ul class="cs-donations">
                                                                <li>
                                                                    <span>余额</span><strong>￥ {{ user_account }}</strong>
                                                                </li>
{#                                                                <li>#}
{#                                                                    <span>已打赏</span><strong>￥ 5,689.00</strong>#}
{#                                                                </li>#}
                                                            </ul>
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-12">
                                                        {% block profile_block %}
                                                        <div class="profile-block">
                                                            <ul class="scroll-nav">
                                                                <li>
                                                                    <a href="/user_functions/已通过"><i class="icon-save"></i>众筹中</a>
                                                                </li>
                                                                <li>
                                                                    <a href="/user_functions/未审核"><i class="icon-money"></i>未审核</a>
                                                                </li>
                                                                 <li>
                                                                    <a href="/user_functions/审核中"><i class="icon-money"></i>审核中</a>
                                                                </li>
                                                                 <li>
                                                                    <a href="/user_functions/未通过"><i class="icon-money"></i>未通过</a>
                                                                </li>
                                                                <li>
                                                                    <a href="{{ url_for('user.my_donations') }}"><i class="icon-gear"></i>我的打赏</a>
                                                                </li>
                                                                <li>
                                                                    <a href="{{ url_for('user.my_collections') }}"><i class="icon-gear"></i>我的收藏</a>
                                                                </li>
                                                                <li>
                                                                    <a href="{{ url_for('user.my_comments') }}"><i class="icon-sign-in"></i>我的评论</a>
                                                                </li>
                                                                <li>
                                                                    <a href="{{ url_for('user.my_comments') }}"><i class="icon-sign-in"></i>众筹成功</a>
                                                                </li>
                                                                <li>
                                                                    <a href="{{ url_for('user.my_comments') }}"><i class="icon-sign-in"></i>众筹失败</a>
                                                                </li>
                                                            </ul>
                                                            {% block user_functions %}
                                                            <div class="cs-profile-area">
                                                                <div class="cs-title no-border">
                                                                    <h4>
                                                                        {{ state }}的任务
                                                                    </h4>
                                                                </div>
                                                                <div class="cs-profile-holder">
                                                                    <div class="cs-table-holder">
                                                                        <table>
                                                                            <thead>
                                                                                <tr>
                                                                                    <th>
                                                                                        #
                                                                                    </th>
                                                                                    <th>
                                                                                        任务标题
                                                                                    </th>
                                                                                    <th>
                                                                                        申请日期
                                                                                    </th>
                                                                                    <th>
                                                                                        任务 ID
                                                                                    </th>
                                                                                    <th>
                                                                                        发起人
                                                                                    </th>
                                                                                </tr>
                                                                            </thead>
                                                                            {% for i in args %}
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td>
                                                                                            {{ loop.index }}
                                                                                        </td>
                                                                                        <td>
                                                                                            <a href="{{ i.function_id }}">{{ i.function_title }}</a>
                                                                                        </td>
                                                                                        <td>
                                                                                            {{ i.created_at }}
                                                                                        </td>
                                                                                        <td>
                                                                                            {{ i.function_id }}
                                                                                        </td>
                                                                                        <td>
                                                                                            {{ i.publisher }}
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            {% endfor %}
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            {% endblock %}
                                                        </div>
                                                        {% endblock %}
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </main><!--// Main Content //-->


            </div>

            {% block register %}
            {{ super() }}
        {% endblock %}

        <!--// Footer Widget //-->
        {% block footer %}
            {{ super() }}
        {% endblock %}
        <!--// Footer Widget //-->

        <!--// CopyRight //-->
        {% block copyright %}
            {{ super() }}
        {% endblock %}
        <!--// CopyRight //-->

        {% endblock %}
        </body>
</html>